﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;
using ARS.Control.Custom.Entity.Widget;
using ARS.Control.Factory;

namespace ARS.Control.Custom.Entity.Fields
{
    public class UserField : HiddenInputField
    {

        public UserField():base()
        {
            this.IsAllowUpdate = false;
        }

        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId
        {
            get;
            set;
        }




        public override void InitInputValue(EntityBaseControl entityBaseControl)
        {
            this.Value = base.GetLoginUsers() == null ? 0 : base.GetLoginUsers().Id;
            //base.InitInputValue(entityBaseControl);
        }
    }
}
